package com.yjlove.myplay.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;


import com.nostra13.universalimageloader.core.ImageLoader;
import com.yjlove.myplay.R;
import com.yjlove.myplay.base.BaseActivity;
import com.yjlove.myplay.utils.ImageFormatUtil;


/**
 * 作者 YJlvoe
 * 创建时间 2016/11/30.
 */
public class ImageLoaderTestActivity extends BaseActivity{

    private ImageView imageView;

    @Override
    protected String getActivityTitle() {
        return getIntent().getStringExtra("title");
    }

    @Override
    protected int getActivityView() {
        return R.layout.activity_iltest;
    }

    @Override
    protected void initView() {
        imageView=(ImageView)findViewById(R.id.image);
    }

    @Override
    protected void initData() {
        ImageLoader.getInstance().displayImage("http://picm.photophoto.cn/006/018/030/0180300367.jpg",imageView, ImageFormatUtil.getOptions());
    }
}
